implementation and tests for UserManager/AddNewUser