Composite dependency substitution via build instead of via jar

Gradle 5.6 composite builds seem to perform dependency substitution by calling the jar task of the included build that will substitute for a dependency or for a plugin in another build.

Is there any way for Gradle to call the build task on a substituting included build instead of calling jar so that tests will be run on the substituting included build?