fix test result reporting
fix test in Py3