Fixed the non-deterministic test