Relocated TestResource class to resource_spec_helper to be reused by specific cloud spec_helpers.