Make SourceMgr::PrintMessage() testable and add unit tests