added tests for adding and removing attributes