Add tests for $.prepareText
Add $.prepareText method