:fix: bugs on rights UT and Rights class