Added tests for addition and removal of attribute