test for line clearing