use {get,set}Attribute in tests