[tests] cgi: check stderr and exit error with delayed upload