added utility function to retrieve session requests, and corresponding test