[misc] Fix equivalence class unit test.