add register and test mongo