Fix tests/test_args_to_config.c so the tests pass on systems that use BSD getopt.

This allows all the tests to pass on systems that use the BSD version of getopt which uses optind = 1 and optreset to reinitialize getopt.