Next.js error handling test