Don't extend GMockTestCase, use @WithGMock instead

Extending GMockTestCase makes the old JUnit runner be used; the
annotations are ignored.
Misc fixes in BuildConfig.groovy