Stats tests

- Adds tests for get/put/noop/txin/txout counting
- Fixes broken get stat

cc @hrwgc @rclark