Improve tests for puppet::agent

Improve beaker and rspec-puppet coverage
test more of the conditional logic in rspec-puppet