mock session manager exists in tests