Added 'pattern' test.