Adding authority levels.
Adding authority levels.
Added unit tests for authority.