JRubyTest: fix JRuby unit tests

They need to use global variables (prepended with $) where appropriate.

Clearing the bindings also apparently does not work with the JRuby
script engine, so let's remove that test for the time being.