ported tests to py3