Fixed `resolveTarget` method of `test-node`