Test session factory renamed, made loosely coupled with other components.