Fixed unit tests with authz