Add --test-parameter option to save specify arbitrary test parameters.

Also refactor code for --batch-override to use the same parser as
--test-parameter.