update resolve-dep to latest, add tests.