Got some hints from http://vstone.eu/talks/puppet-module-testing