Fixed tests.
Introduced insertHtmlIntoSelection (now there are 3 function like insertElement) and added tests.