Updating the Java client tests and fixed web-server debug mode