Setting up methods to make test case testBookDetails pass