Fixing problem with session starting during unit tests.