Added search by text.
Added sample test.