test: add constructor test to async-hooks
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
async-hooks
[refack edit: removed documentation checkbox, as it seems it is not needed for this PR]