testcase for https://github.com/Netflix/RxJava/issues/840