QA: update search test for RSpec

* also removed unused code marked FIXME

Change-Id: Icd2a70235e419dedc2c2848a4de7996a13d02567