Exception and EntityHistory fixes (getEntityHisotry was untested, some exceptions also weren't)