Test passes if no red is visible except for anti-aliasing differences, and the green rectangle does not extend beyond B to C.

A B C D
ABCD