testcases for sessions