Added validations for duplicated features. Changing tests to use the configuration api.