Add some Mocha tests which use MongoDB
Fix a typo