Fix type hint.
Add user role unit test.