Bug 1024791 - Scan the add-on for tests

I'd call this `makeFilter` as you construct a predicate function as a return value.