Added testcase for fetching IDs for an organization filtered by kind.
Refactored fetch_contact_ids_for_category(..) and filter_contact_ids_by_kind(..)
into non-static methods and added testcases.