Add tests for enum and pattern validation for parameters