replaced read with open in TestReportReading