Fix variables access

This fixes deprecation warnings in puppet-catalog-test