Write summary file after test.
Merge pull request #126 from boudewijn-tribler/bugfixes

Write summary file after test.