Refs #21228 Added unit tests for ping collision avoidance. Fixed code.