Added tests for userPermissions service.