Fix resource-overlapping check wrt. testResources
Fix possible false-positive IT test.

Following 784f39a486b9076bc2a9358c9cd1fb54fd15180b, compilation could have
been triggered here even without the forceCompilation.