updated pattern test