It's a good practice to keep unit tests atomic. Consider splitting this test to two separate ones. First one that checks successfully completed observable and second one would check `onError` use case.