implemented basic junit test of Line