Fixed bug in custom testers

Even when a `canCollapseWhitespace` 'tester' was passed, it was never used. The code in `_canCollapseWhitespace` erroneously refered to `options.canTrimWhitespace`. This change fixes this.