Improved test support for the endpoint creation flow.