Convert File.new to File.open in the test suite
Convert File.new to File.open in the test suite

In #test_to_path test case File.new was being called instead of
File.open, which result in the block not getting executed.

fakefs/fakefs,defunkt/fakefs