MongoDB integration test updated so that it can run with secured database