added test cases for file reader