Test cleanup for book formatting