Improved session tests.