test KeyError and AttributeError on back lookups