Add unit tests for .html( number ). Close gh-1447.
(cherry picked from commit ed291938c287d34fe1183e588e12372e540eb5e7)