Added unit tests for BroadcastReceivers.
Added various unit tests.