Fixed unit tests to avoid dead locks while droping db schema.