Fix Contactsmanager permission + unit test

@DeepDiver1975 like discussed in #12369. 

@DeepDiver1975 should I create some unit tests for the other methods too?