added testing for session management