Gradle test not picking up project dependency class

So in my test script I have declared in dependencies section
implementation project(':Base')
Compilation and all works fine, however when executing test task, I get NoClassDefFoundError/ClassNotFoundException. The failing class is in the source of Base project and included in jar produced by gradle for the project.
Using gradle 6.3 and AdoptOpenJDK 8.0.242.
Many thanks :slight_smile: