Test book generation