* port tests in Semver to Instance.valid
