fix non-deterministic test
Merge pull request #843 from metamx/fix-nondeterministic-test

fix non-deterministic test