Bugfix: dry-run option was not being observed. Also added test coverage for it.