big change - added automated pattern testing