Fix search result assertion to not hard code results

And add more debug on failures.