fixed test case for booksInDemand