Fix unittest for history