adds delete button for individual line items, improves tests