New helper and test for the stat system
#23