add tests for nym_stats

As far as I know, pyopentxs is just to help us test opentxs.

Unless we're planning on shipping it to customers for some reason, there's no need to write tests for it.  Maybe there's something I'm unaware of?