Build Cache misbehaving with the Android Plugin

According to Build Cache documentation, the android plugin is supported and work well with it.

But enabling build cache e.g. with the --build-cache flag does not work as expected, namely test and connectedTest tasks are always executed and are never taken FROM-CACHE. Is this a known issue or am I missing something?

Steps to reproduce:

  1. create a new project in Android Studio ( created a gradle project with gradle=4.4, android-plugin=3.1.3)
  2. ./gradlew --build-cache :app:test
  3. ./gradlew clean
  4. ./gradlew --build-cache :app:test

The following tasks will not be taken from cache:
:app:checkDebugManifest
:app:mainApkListPersistenceDebug
:app:testDebugUnitTest
:app:checkReleaseManifest
:app:mainApkListPersistenceRelease
:app:testReleaseUnitTest
:app:test

Any ideas?

Thanks