Make specs to test the actual functions of the package.
Extract common code that transform selected text.