Ruby 1.9 compat in tests