test the search book function