improved coverage for the stats command