add integration tests for receive