Update: Its a bug and it\'s been reported, please star: https://code.google.com/p/android/issues/detail?id=209832&thanks=209832&ts=1463161330
I changed TestCompile to androidTestCompile and it's worked without problems.
testCompile 'junit:junit:4.12'
to
androidTestCompile 'junit:junit:4.12'