Add a test case for ping errors