refactor DStab test cases