history: fix tests in py3.