Reduce duplication in provisioner tests