test: change deprecated method to recommended
In non-buffer tests, change usage of the Buffer constructor to one of the recommended alternatives.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
test buffer stream tls zlib