Add setup function for setting up endpoint configs in tests.