[DF-2409] Proper release all font object in UnitTests. Other small fixes for UnitTests.