test on_ping and on_pong