Add tests for Replayer and Recorder.