adjust documentation and unit test to desired behavior

I'll leave the regex adjustments to @stdweird ;)