add contains and condition assertion