[testHapProcessStandard] Fix a bug that doesn't show a correct error message.