Added session support for test infrastructure.