testing and cleaning