added testing for some table stats code which isn't working