test.Log;test.Fail -> test.Fatal, and use checkError

(in tests)
Don't export sendResponse, and pay attention to its retval