write test for mongo.components