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

do we really need window. or can we simplify the expression?