add tests for Receiver