test: improve test coverage for n-api
Add basic tests for handle scopes as code coverage reports that we are not covering these with the existing tests.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows [commit guidelines]
Affected core subsystem(s)
test, n-api