Made test more deterministic