JS unit test to verify that active pings are canceled on stop.

#2840