Add unit test to catch a possible regex translation bug.
Some small doc improvements.