test: fix unit test of rights module