add a test to check that an attribute deletion removes its labels