Adding session object to mocked nodes.