working on mongoose integration test