test(rights): tests for rights
Merge remote-tracking branch 'origin/0.4' into 0.4