Fix tests for older bytestring versions