Improve Provision testing utilities. Add uni tests for Provision and WaitForProvisionTask.