Re-introduce mocked dependencies

Attempt to re-produce failure on TravisCI.