Fix for JRuby tests.
Added rake task for test.