fix node tests as they were not deterministic