Fix misunderstanding with toContains() matcher that resulted in bugs