ReplaySubject UnitTests

Shows bug handling terminal state.
Fix #544 ReplaySubject emits items received after onError
Merge pull request #600 from benjchristensen/replay-subject

BugFix: Replay Subject