wrote simple integration test for mongodb