Updated tests for test mongodb