Fix unicode test in python 2.7