Unit tests for font allowlisting patch

We need unit tests for the font allowlisting patch (legacy/trac#13313 (moved)).

Edited by morgan