added unicode flag for test string (back since python 3.3)