fixing bytes and strings in tests
unicode and six.PY3