Fixed a bug in History. Added test cases for it.