modified test
adds dry run as an option