with -r, exclude test deps of dependencies

[finishes #64980018]