Added code to wait until the server says it's ready before testing it.