The actual change is at L107, as this test case is testing if the attachment's content type is set properly. The original code did not test it at all. But yeah, we can probably get rid of L106.