Fixed a few bugs in provisioning test resources for storage