Separate out searching test code.
Add explanatory comment.