fix tests with ruby 2.2. there's something wrong with attr_accessor?