tests: add default trim to the text() helper

Closes #173