Setup and teardown a test db.