This commit includes minor refactoring in Ping and PingServer to support unit testing refs #2796 Change-Id: Id0172486aa07e129a90091d72594fbccbb5dbc06