[test] add FormatConstraint validation test [folded]