Test reporting now happens immediately after test

This solves the problem of having tests that want to also output text to
stderr.