Better handling of update tests for metatest class.

Check the return code and for errors first prior to attempting to
check for the standard output content.