--- modules/book/book.test.orig	2008-08-28 09:36:25.000000000 +0200
+++ modules/book/book.test	2008-08-28 12:11:22.000000000 +0200
@@ -27,7 +27,7 @@
    */
   function testBook() {
     // Create users.
-    $book_author = $this->drupalCreateUser(array('create new books', 'create book content', 'add content to books'));
+    $book_author = $this->drupalCreateUser(array('create new books', 'create book content', 'add content to books', 'administer book outlines'));
     $web_user = $this->drupalCreateUser(array('access printer-friendly version'));
 
     // Create new book.
@@ -63,6 +63,18 @@
     $this->checkBookNode($nodes[2], NULL, $nodes[1], $nodes[0], $nodes[3]);
     $this->checkBookNode($nodes[3], NULL, $nodes[2], $book, $nodes[4]);
     $this->checkBookNode($nodes[4], NULL, $nodes[3], $book, false);
+
+    $this->drupalLogout();
+    
+    // Book outlines.
+    $this->drupalLogin($book_author);
+    $this->drupalGet('node/' . $book->nid . '/outline');
+    $this->assertText(t('Book outline'), t('Book outline fieldset found.'));
+    
+    // Remove last node from book outline
+    $this->drupalGet('node/5/outline');
+    $this->drupalPost("node/5/outline/remove", array(), t('Remove'));
+    $this->assertRaw(t('The post has been removed from the book.'), t('Node was removed from book'));
   }
 
   /**
