Adding a check for config-dir options for unit tests