Returns a valid TestOutcome for data, null otherwise.
Converts the provided data to a String on success, null otherwise.