canonicalize testdata