tests: add default trim to the text() helper