[PATCH 37/43] test: Move stats into a struct