FIx testcase of Observable.generate