Fix tests on ncm-sudo

There was a typo in a regular expression.