add regression test for pickleable cached_properties