Add tests for statistics #58618340