Adding caching for AltoXPathEventHandler and its tests