fix test db connect not close issue