Added a test for history state