TestCollectionSearchLibraryFilter's 'invalid library_id' case was expecting a 200 with empty results, but the search handler correctly returns 404 when no results are found. The test also consumed the response body for debug logging then tried to JSON-decode the same body (causing EOF). Add expectedStatus field to the test struct and return early when a specific non-200 status is expected.