moving logic of getting test results to the test itself
test now has path to local storage and sets path to output file