Fix bdd test setup after indexing changes.
Make search bdd tests more useful.
Avoid setting context as undefined.