updated tests to include new optional regex escape boolean in the constructor, speedup x 2 -3