Add a test for ping event

GitHub: fix #6