Wrote tests for open/close sessions.