mock FileExists for testing