unit test for book controller