fixed unit tests for File