Tests invalidation after layouting and then removing a layered span. The span should disappear without any residue.