mock Twisted dependencies in the test