Add tests that cover the SetEquals reference equals optimizations.