Test exception is thrown when calling ::instance() and configuration is not registered