line clean methods and tests