Clean the code and test some functionalities