If there is a problem with opening the database it will throw. Ah, I see that mocha-as-promised does not report it too nicely. Pretty bad as I expected it to work.