tests: add file error test