This is missing a test for behavior on the "session:ended" event.