[server][testFaceRest] Introduce an object as a function argument to make code simple.