add basic tests for version related functions

* copied from libsodium test suite