Fix tests according to the new signature of session_ending_at(). #222