Fixed problem with unit tests when using html() function