fix for py3 bytes in tests