Fixed testsuite, added a puppetdb test