Added an injectable endpoint

Allows for injecting endpoints to simulate poor responses while still testing
the responses from the actual endpoint.