Fix textbook bulk save bugs and textbook test bugs.