patterns testing