Relocate file access mock to test package.