Add CLI hammer ping test

Added test for the hammer ping command. Automates BZ 1094826.