Correct test log printing due to inverted comparison