Add test for .getAttributes() #47