Twill test framework cleanup. Fix functional tests for history functions.