test and clean