Updated cache update policy. Added fetch() method for entity sets and test for it (updates #28).