Search tests

Closes #166