fix tests and tried example
fix for jruby
fix for jruby
working on jruby bug on tests