Updated testcomparison tests to be Python3 compatible