CLOUDIFY-2379 Added validate command and tests