TDD: 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.