test_crawl: make mock server print a line when ready, and wait for that line to start tests, instead of waiting for an arbitrary time