cmd test: fixed to handle console connecting to DB

This isn't very ideal; the console command (and thus also the crawl
command, since it starts a console) does not currently allow injecting a
mock DB, so we need to create the test schema for these tests to work.
We may want to rework it some.