add tests for File function.