Reply before writing out test file to avoid race condition.