Switch index.test.js server api to avoid leaking `respondWith`, using `nextResponse` instead.