Fixed a bug in communication_test when first message is lost.