rework the error message in test result