[Summer & Lingzi Wu] - abstract bookIndexConfig to fix test coverage and refactor
[Summer & Lingzi Wu] - refactor test data. extract the duplication.