[testing] Use canonicalized selection rather than resulting selection in test result comparison for checking C++ implementation compatibility.