added textFileReader tests and refactored textFileReader class to be unit testable