update test on validity pattern