[misc] Add helper APIs
[misc] Add test helpers