These lines need comments explaining step-by-step what the changes are and what the expected behavior is.
Ideally, these would each be separate test methods, since presumably some of the logic tested here could work even if parts of it failed.