expect nb of message in tests