fixed deleting files, improved tests managing