added tests for synchronous handle api