Added unit-tests to demostrate IdentityContext Right/Permission check.