Added tests for session.