added test, fixed recurse of dependencies