Added tests to handle calling getAllBooks in /api/library route.