Test redirects and add option to the CLI