Fix test now that ServiceProvider throws a generic exception

aspnet/DependencyInjection#87