Added easy way to hydrate session from tests.