Bug 963504 - [Contacts] Add unit tests to activity handling