added tests for public regex functions