Add timeout to testPing()