fixed the test cases realted with old font api