Mask Test: Legacy Patterns with Custom Defintions

Mirrors the example given in the Mask Documentation