Fix error in evaluating test output