Helper functions should not be tested directly; rather, use the public interface of the module (in this case, constructing a SearchResult), and then check that the snippet therein is correct.