Improved coverage of pattern validator