Add an 'allocs' testing function