Cleanup unit tests temp folder

This PR Fixes #4971

* Add calls and functions to remove test/temp folder
* make remove temp folder from list of ignoreds
* Add an optional parameter to deletePath to surpress error messages