Specifically make it easier to test the Java version. Added a test rig so you can use gradle to run the java version