Add test for mongodb