log to mongodb test pass