Cleaning and tests