fixing tests for python 3 unicode encoding