in tests fixed an error exception when there is no folder to remove