more tests in tests/sync-function.js