test Stream::allMatch and Stream::anyMatch