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