Ported tests to python3