Changed slug to be more generic when logging errors

Updated call to add_error to use a more generic slug in first parameter instead if using the matched parameter value. Updated unit test to reflect this change.