Unit tests for matchActivities