Add test that checks attrs are properly returned