Fix permissions
Add unit test for contactsmanager
Use PHPUnit mocks
Mock interface
Remove config file
Merge pull request #12672 from LEDfan/cm-per-unit

Fix Contactsmanager permission + unit test