removed documentSetSelection functionality in stylededitor and made test for it