Added PatternBuilder Test.