Refactoring of tests. Used assert.isInnerHtmlMatching.