Tests for searching

Extra tests for searching.