Added a test session method.