Fix functional tests for history functions.