Add unit tests to font_fit.js

Should this be removed?