Regression test improvements
Created by: beyang
Fix some bugs in the regression test suite. The biggest change is waiting for repositories in the search tests to be indexed before proceeding. Previously, we only waited until repositories were cloned, which meant that search results were incomplete if the repositories didn't already exist on the instance.