Added tests for the EndSessionSpy.