fix test db issue