Fix non-deterministic test

Fixes https://github.com/Netflix/RxJava/issues/1429