[test.common] updated check_for_success()

These variable names make reading the error message a bit easier.