refactor tests for string filters w/ a predicate (e.g. body_equals)