Added test session functionality.