only add PendingStateLogManager to model if using cache backend
fix tests