Fixes #6636, #6657, #6694: PGError while creating OS with to many characters in name/minor/major

Fixes #6657: Major/monor version fields should not accept negative integer values while creating OS
we have helpers now for assert_valid, refute_valid etc which could be useful to shorten these tests