Add wait for server to test script