Error when inviting users

fixes #3433
- passing only the role ID when creating a user
- uncommenting test cases