add test for mongo exception