fix detection of a successful test