add test code for MongodbPfwService function