fixed bug in pattern validation rule
Merge branch 'cleansing'
added test from old repository