added test cases for line ploting