Fix e2e test_statistics_endpoint
Fix e2e `test_statistics_endpoint` after the simultaneous merge of:
- #1870 
- #1418
Fix e2e test_statistics_endpoint: Fix e2e `test_statistics_endpoint` after the simultaneous merge of:
- #1870 
- #1418