Add unit tests to font_fit.js