COMMONS-318 add Unitests for UserStateService and RESTUserService