updated TestJavaSerializer