Added tests for regex edit.