Added getUser to email. Added two session unit tests