Change File to FilePath in test