Probably you might have to add two more line items. Here is how I achieved this.
Added Test 3 Line item where I checked Parent Of the List, kept the Summary as Last Non Blank
Added Line item Test 4 - Kept the summary as Formula
One thing to note that you will have to change the Summary of the first line item as well - Change it to Formula