It appears that the test runner does not provide the ability run tests that call Grails dynamic methods. For instance, the following tests fails inside IntelliJ but not from the grails command line:
return LogEvent.executeQuery("select distinct e.application from LogEvent e")
It's unclear to me if this should work. If not, is it unreasonable to think we'll see this in a future version? I have no idea how much of a challenge this would be to implement.