Fix typo in user model
Add unit tests for user roles