Adding more test case for file.go