Add a test for the java bindings