Added test for DoS on message formatter (when text contains huge number of template patterns)