fix syntax, so that tests pass in ruby 2.0