Testing repeating patterns