Added tests for the EventRecorder.