Add unit tests to PublishSubject