Make tests pass under ruby 1.9