[test] Split helper function into two
[tools] Add small resolve tester
Add minimist as node dependency