How to test polling with rxjs timer