Wait for server listening before executing test