Enable Sync builtin for EM. Add test for sync builtin

With updated test.