Fixing an issue where the JVM triggers a callback multiple times.

Now to figure out why the test runner yields different output from the regular runner...