Made JUnit tests work for CC, but not with receiving intents.