(maint) Fix PE PuppetDB Accp Tests

Prior to this commit, the puppet enterprise puppetDB acceptance tests
did not work on Puppet Enterprise. This commit has
converted the open source puppet tests to work on both open source and
puppet enterprise.
(maint) Fix Helper tcp socket connection

Prior to this commit, there was a problem with a function in helper
that caused FOSS tests to fail for PuppetDB. This commit fixes that.
Merge pull request #533 from briancain/feature/1.3.x/pe-acceptance-tests

Fix PuppetDB Acceptance Tests Feature/1.3.x/pe acceptance tests