Added close-session test.