Add test case for sender UID in prettyFormatSignature()
(cherry picked from commit c58830ae1b5e73c85a1a450b154a527ff2c305e9)