Refacto mongo test