CLOUD-327 Added scale up, scale down to the tests. Generic flow abstracted