fix instances where test dependencies are not inherited from dependencies