Fixed test_endpoint_local test, off by one error