main: Add --test option for a dry run.