Move testing to TextInputHandler
Update tests after changing paragraphs
Add command enabled checks