added a testfor history state