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