Clear the font caches on every test.  This should prevent problems where setting font properties will leak over into another test.
Merge pull request #2437 from mdboom/fix-randomly-failing-tests

Fix randomly failing tests