This works - mocking the chain of importing client stuff

but it's ugly