Ensure that the Pathname() method is faked.