AppConfig factory and unit tests (incomplete)