Fixed bugs with update_stats mgmt cmd and test. Closes #63