added test to make sure history states worked when called from stativus event handlers