[improvement] Don't collect child dependencies of dependencies with scope "test"