Provide support for running and switching between tests in Gradle.

This provides a compatibility with a gradle:

* to run the compilation
* to run the tests
* switch between implementation and a test case (my main concern)