Wait for the server to start in the test