Fixed py3 tests fails