fixed test for py3