Assert we have the right number of messages before finishing the test