Implemented getSessionId methods in tests.