Improve unit test of lang\File class