Added a test for the mongo db connection. Also added a stub for the fail case.