Fix tests on Ruby 2.1