coded unittest in getBooks controller