Refactored out a method print_header from dotest.
Refactored out a method print_header from dotest.

Now error_message is returned from do_test.
print_header is called after dotest.

claudio-unipv/pvcheck,claudio-unipv/pvcheck