Tests for Promise.allof and Promise.anyof.