add integration test for getting books from database