Fix font type change test in unit test code.