fails:FileTest.directory? accepts an object that has a #to_path method
