Fix access to allowed_endpoints field in initial_from_config (error was hidden by misnamed test class fixed in previous commit).