Make mock function global, do not remove global function on test end yet.