Make stub configuration from tests work

Wrapped call to configuration function in a try/catch so that stub
configurations used in tests work