Added tests for receiver.