This does seem to fix the issue (at least for test_everythingme_search.py, which I ran multiple times), but `sleep` is not a good solution to the problem.

Thanks for pinpointing the problem, @AndreiH, but I think we should try to come up with an appropriate wait instead of using a sleep. Can you try to find one?