version: add more unit tests

Would you please give this a better name? I guess it got moved from the simplestreams package at some point.