Avoid unit test to create a file outside of working directory.