Added missing methods in Session and session() getter to UnitTest.