Added test framework.

The radix defaults to 10 (or 16 for `0x`), can be omitted.