CLOUDIFY-2425 use ctx.set_stopped in test