search: tests for logical operators

Change-Id: I3d389c3b58206fd98140834162aec17218bbce14