fix up the stats command add test