Test: More lenient `get_version` test

On non-release branches, the `major` element of a version triple can be -1 (or
the corresponding underflow value).

This commit permits this value in the related test-case.