tests: add default trim to the text() helper

This PR adds the default `trim()` call to the hashtester's `.text()` helper method. This is avoids the need to mess with leading / trailing white-spaces in tests (check all the modified tests to see what I mean).