Add test that makes sure text consts are in sync

RFC. This makes sure we are always in sync with the browser consts if we run tests in browser.

However I think we should use text measurements only for random tests generator and update consts when they change.