patterns test