Fixing failing tests due to rspec 3 on old Ruby