Run continuous integration tests on JRuby

This one fixes the tests on JRuby and requires them to pass on Travis as
well.
Merge pull request #62 from gsamokovarov/jruby-tests

Run continuous integration tests on JRuby