Fix unit tests so they use an in mem db.