Add tests for File.