add a method for enabling cleanup tasks for tests