Issue #3295874 by phenaproxima: In functional tests, use the state service to simulate staged database updates