stubbed session factory