bug is when line is added, test() now returns []