[testFaceRest] Stop using a global variable to improve flexibility and module independency.