test case for mongodb call