updated packet loss test (working)