Added tests for user role relationship

I added tests for the user role relationship.