JavaScript sync tests for end-to-end correctness