Fixed test for line items.

No leaks. and no invalid reads or writes. Time to apply it to ctl.c