Factor out deployment tester
Fixes