testing for session