Resolve "bug: test file might not get removed"
Description
In few words, there was a test method in the unittest for BaseEnsemble that was creating a file that was not being deleted when the test fault.
Minor modifications have been included in order to delete the file even if the test fails.
Closes #212 (closed)