more tests for File. enhance functionality for File function.