Address JS test race condition.