test: use `semver` module to test node version