Factored out the stage setup stuff for acceptance tests