Tests: Fixed regexp which was incorrectly reformatted and broke test totally.
Tests: Do not mock editor, because it will not be fully initialized and thus some methods may malfunction.