fix non deterministic test