diff --git a/pathauto.test b/pathauto.test
index 6fa096e..1bbfce0 100644
--- a/pathauto.test
+++ b/pathauto.test
@@ -193,6 +193,22 @@ class PathautoUnitTestCase extends PathautoTestHelper {
   }
 
   /**
+   * Test pathauto_clean_alias().
+   */
+  function testCleanAlias() {
+    $tests = array();
+    $tests['one/two/three'] = 'one/two/three';
+    $tests['/one/two/three/'] = 'one/two/three';
+    $tests['-one-/-two--/three-'] = 'one/two/three';
+    $tests['one/-//three'] = 'one/two/three';
+    foreach ($tests as $input => $expected) {
+      $output = pathauto_clean_alias($input);
+      $this->assertEqual($output, $expected, t("pathauto_clean_alias('@input') expected '@expected', actual '@output'", array('@input' => $input, '@expected' => $expected, '@output' => $output)));
+    }
+
+  }
+
+  /**
    * Test pathauto_path_delete_multiple().
    */
   function testPathDeleteMultiple() {
