The test testAliasRedirect does not appear to test whether a node with a changed alias correctly redirects upon re-publishing.

Steps:
1. Enable Workbench Moderation 7.x-1.4, Workbench 7.x-1.2, Pathauto 7.x-1.2, Redirect 7.x-1.0-rc3, Testing 7.38 (simpletest).
2. Go to /admin/config/search/path/settings
3. Set Update Action to Create a new alias. Delete the old alias.
4. Go to /admin/config/development/testing
5. Expand Workbench Moderation
6. Check Alias after title change
7. Click Run tests

Got:
An error has occurred.
Please continue to the error page

An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?id=343336&op=do StatusText: Internal Server Error ResponseText

(I'm guessing this is a separate issue, but including it just in case it is relevant.)

8. Clicked the link for the error page.

Actual result:

Result: 26 passes, 0 fails, 0 exceptions, and 8 debug messages

Last test is HTTP response expected 200, actual 200.
There doesn't seem to be any test that results in a 301 or 302.

If I examine the code, I see:
1. A page title is set via randomName()
2. Page is published
3. After publishing, a new page title is set via randomName(10) . '_revision1'
4. Page is republished

I would have expected the final test to attempt to visit the random title from step 1. Pseudo-changes shown below.


  function testAliasRedirect() {

    // Create a new draft node.
    $testRandomName = randomName(); // *** new code ***
    $edit = array(
      'title' => $this->$testRandomName, // *** revised code ***
    );
    $this->drupalPost("node/add/{$this->content_type}", $edit, t('Save'));

    // Moderate node to published.
    $moderate = array('state' => workbench_moderation_state_published());
    $this->drupalPost(NULL, $moderate, t('Apply'));

    // Edit node and change title.
    $node = $this->drupalGetNodeByTitle($edit['title']);
    $edit = array('title' => $this->randomName(10) . '_revision1');
    $this->drupalPost("node/{$node->nid}/edit", $edit, t('Save'));

    // Moderate node to published.
    $moderate = array('state' => workbench_moderation_state_published());
    $this->drupalPost(NULL, $moderate, t('Apply'));

    // Check response code is 200.
    $this->assertResponse(200);

    // *** new code *** Attempt to access via old title
    [whatever the code is to retrieve a node by title]($testRandomName);
    $this->assertResponse(301);
  }
}