User is now able tto persist changes to user permissions.
Added tests for userPermissionRepository.js.
Added tests for tpermissions controller.