fixed tests for python3