PingTest with threading not working