user manager convertion and unit test

- added testfolder for services
- added affinity validation