Accept configuration as keyword arguments in session constructor
Simplify tests