Fix 500 error test