test: improve http res write and end dont take array
Checking if the error thrown in res.write and res.end is ERR_INVALID_ARG_TYPE if arg is array.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines