generalize set syntax normalization into assertSimilarRepr