Ensure test db is created/current before mocha task

Ah right, I have that NODE_ENV != 'test' check on a utility method rather than the task itself. i suppose the solution would be to bring the check to the task, but i'll wait for your patch