fix failing tests under rspec 3.x