VX(Li): A bit of refactoring for BaseEndpoint and add the load tests.