wrote spec for VersionedResource