Mock external services

Eliminating the dependencies on external services will greatly improve the speed and stability of your tests.