Add a method to help with filter/field iteration

- Add explanatory comments
Can we refactor these to use arrays of booleans/strings? Then you can use a for loop and reduce the size of this test by quite a bit.