RF: struct doctests check equality not out string

to avoid spurious failures for b'' rather than ''