Added test for search expected behavior