Add working controller test.
Fix Groovy tests.