Add tests for Formatting::prettySignature
This should prevent future regressions without relying on tests in mimetreeparser.
BUG: 493963