If a test previously run successfully, make a change, then run the test again - sometimes it gives a successful result although the true result should be failure.
This was resolved by running gradlew clean, run command to generate additional codes, then run the test again - only then the correct result shows.
This behavior is inconsistent, meaning, sometimes it happens, sometimes it's not - which makes it difficult to trust the test result.