User service compliant with unit testing