Added mongo db test code