Yes it's weird. The ENV variables are really supposed to be a way to override the hostname for purposes like cucumber testing of core which don't depend on CLI at all.

A better solution would be to configure the Authz::API.host directly. There's no configurable attribute there but it's "meant" to have one.

```ruby
module Conjur
  module Authz
    class API < Conjur::API
      class << self
        def host
          ENV['CONJUR_AUTHZ_URL'] || default_host
        end
        
        def default_host
          case Conjur.env
          when 'test', 'development'
            "http://localhost:#{Conjur.service_base_port + 100}"
          else
            "https://authz-#{Conjur.stack}-conjur.herokuapp.com"
          end
        end
      end
    end
  end
end
```