Add sendAndPopMessages test.