H/regex fixes

move the two tests that just verify the exceptions into unit style tests in either analyzer or regexp function tests