added tests for mongo