tests: refactor/enhance tests about make dry-run mode