Fix tests, verify_callback functionality on jruby.