adds test logging and reads test data as an input stream, displaying output to a terminal and writing to a file byte by byte