Wait for the server to start before running test