feat: port agent.js
tests to node:test
runner
#2566
Merged
agent.js
tests to node:test
runner
#2566