add test for history