Add a test for receive event