mode_test : java and json coverage