signature: Add some initial unit tests.

These are two very short and simple tests, but I'm not sure if this part of the library needs a whole lot of tests since it's mostly depending on external logic.