Add test for causal delivery.

Add simple test to verify causal message delivery.