Changed a test to make it pass on JRuby