Fix textbook tests