Mock loading files in tests