test fail auth write file