I see that you have a 

setup
logic
verify
logic
verify

So this test should be split up. 

So you are either going to test list.size without a transaction commit. Or you are going to do the commit. But within a single test you are not going to test the 2 scenario's.