Fix ping spec

Headpin ping spec was not set in headpin mode so it tried to contact
Pulp. I DRYed up this spec and added config stubbing so it works
correctly.
Merge pull request #1675 from ares/tdd/ping_test_fix

TDD: Fix ping spec