Fixed issue in which the default configuration options were not taken if no corresponding key present in the configuration, test added