Add interface methods for testing vec<handle>. am: ebfa633103
am: 3a036694a0

Change-Id: Icf463560ee841c513f0a61b3920e67fdff89f40e