improved test case for book controller