Added default value tests for java