Extracted BasicConfig

Can be used for main apps instead of tests