add support for --dump-test-report, fix a couple of remarks