Fixed bug in search test.