Add 'check' to default gradle tasks.

Also fix regression test (test was out of date with code).