Addapted tests for python3