File tailer refactoring - tests