Add tests for book.py.