test: add a test for mongo errors