test interaction of caching and inheritance