adding test for returned attributes