Added test for clearLines()