Fixed another recursion issue.
Lots of unit testing for Session.
Added another session test for 100% coverage.