[PATCH 2/5] reg/tests: Add tests for duplicate command-line switches