Changes:
  Added Unit tests
  Began work on exported resource - This may disappear if I change to puppetdbquery for linking