basic mocking test for setErrorFile