Fix for tests under Ruby 1.8.7