Added a better test for attributes