spec: validate quantity