wrote function that can be used as template for analyzing output of a test suite