removing ApplicationConfigurationTest duplicated code