Authorization facilities, unit tests