Ensure deterministic test outcome