Refactor test for BookSearch's search method