Maint/master/fosstests for pe

Prior to these commits, the acceptance tests for PuppetDB on Puppet Enterprise did not work. These commits contain the fixes required to make PuppetDB acceptance tests work for Puppet Enterprise.