Add eplicit dependency on core-db from -tests

Maybe this will fix the problem of rest-api not compiling on the first run of
grails compile (only the second, after the core-db and core-db-tests are there
on the local maven repos).