Added lifecycle to Receiver. Added ReceiverTest, InstanceStateTest