improve test code - WebfontLoader