Fixed imports in tests to work on Python3