Change environment checking call.
Add mock for File delete.