Use "as" form if pytest.raises instead of try/except
Clarify "non-alphanumeric" definition and make the regex UNICODE