Add LogMessages helper to TestSink

[#81035386]

Signed-off-by: Kris Hicks <krishicks@gmail.com>