Making http test helper method agnostic.
Adding event for ended session.