added multiple arg tests
fixed preprocess when same flag is provided multiple times