Added test code script, writes test results to output.txt in same directory as script.