corrected history and added test for it