Optional configuration loading for better testing

Change-Id: I517516bc32a3f230bc2f98721a9de25096eb2cf3