Run continuous integration tests on JRuby

This one fixes the tests on JRuby and requires them to pass on Travis as
well.