Cleaned CMakeLists.txt.
Added recursive delete of folder content
Fixed broken unit tests (system dependent)