mongo unit test