distributed corrected resetDb script to test cases