test results are now passed as TestReport struct.
writing of testresults is now extracted.
added a Main sub.