added tests for rights adding