test for mongo interface