Oops, need to override for this test too.
Move everything that touches the #stats{} record out into its own module.