add some tests for session