add support for dry run option
add test for --job, use dry_run option fo main in some other tests