Test the NodeJS Component

Previously, the NodeJS component class was untested. This adds test coverage
for it.

[#71846956]