Tests for cached_property and cached_class_property