fix issues with jruby failing tests
Merge pull request #1330 from kevinzen/jruby_fix_tests

fix issues with jruby failing tests