(PUP-3014) PMT test basic_generate teardown fix

This commit moves the clean up step in the PMT
generate/basic_generate test into a teardown step in order to
ensure that the files are removed before other tests run.