Fixes bugs arise on unittest and BookSearch API