Index: term.php
===================================================================
--- term.php	(revision 1293)
+++ term.php	(working copy)
@@ -71,6 +71,23 @@
 	}
 
 	/**
+	 * @ticket 17689
+	 */
+	function test_term_exists_non_duplicate_on_characters_stripped_by_sanitize_title() {
+		// Create two different random strings that when sanitized would produce the same result.
+		$termA = '$-+/ $' . rand_str();
+		$termB = '$+ $ * -' . $termA;
+		// Insert the first one to the database
+		$tA = wp_insert_term( $termA, $this->taxonomy );
+
+		// And check if the second one exists.
+		$exists = term_exists( $termB, $this->taxonomy );
+
+		// term_exists() returns 0 when nothing found.
+		$this->assertEquals(0,$exists);
+	}
+
+	/**
 	 * @ticket 5381
 	 */
 	function test_is_term_type() {
