Add unit test to ensure sessions are used properly.