refactored config to allow for app and test config impls