Pass config as options for services
Add appState tests