Make test more deterministic