added a working insertPatternBase and began testing