Make test deterministic