Fixed #20237 -- Reenabled assertContains with binary parameter

Thanks Baptiste Mispelon for the review.