unit test for attributes