add new test case. refactoring session code.
rename