Fix Contactsmanager permission + unit test

@DeepDiver1975 like discussed in #12369. 

@DeepDiver1975 should I create some unit tests for the other methods too?
Fixed. I first got an error, so I though it was impossible, then I saw it was a typo......