update Tests; add mongodb back to java code