wrote test for attributes