Narrow Groovy container detection criteria

No longer test for either the existence of a single .groovy file or
for a file named main.groovy or Main.groovy. The remaining detection
criteria are sufficient.

Tidy up the tests on the basis of the new detection criteria.

[#54271200]
Merge 54271200-narrow-groovy-detection-criteria to master

[#54271200]