NumberStyler: add testing.

This is a port of the previous tests for these functions, updated for
its new status as a role.  I can be convinced that this is not the best
way to do this, but it seems well-enough to me.