Test: Use ping instead of timeout to do sleep on Windows