Fix an instance in the tests where a resource was not being cleaned up after uploading and verifying