Fixes all failing unit tests.

  Previously several of the unit tests that were defined for this
  module were broken.  This was discovered while fixing Puppet 3.x
  deprecation warnings.  This patch fixes all tests and adjusts provider
  code where is was causing legitimate failues.