tests: In test_encode_decode_benchmark, allow the publicKeyDer to be bytearray.