test with attr_accessor