Since all of your tests are running ```puppet agent -t```, it would make more sense to create a separate function that can be called by every test.