add test for mongodb