added in tests for history state