Modify test-lib.sh to output stats to t/test-results/*