Add 8 tests for mongo API endpoints