fix test cases with db config