fix search tests. fixes #224
cleanup
Merge pull request #229 from balanced/bugs

Search tests