filetesting: create file with correct mode; test failures are annotated