Foreman-puppet 7.2 Types and Providers

I am trying to use Foreman puppet module 7.2 foreman_hostgroup type and
keep getting following error, Could not evaluate: Hostgroup testing locate
hostgroup: (Could not load data from https:/foreman.test: no implicit
conversion of nil into Hash

I am executing on the same foreman host it self with oauth_* params set. I
feel like some dependencies are missing but don't know what.

Can someone help me with this, please?