Fix tests on Ruby 2.1.1