tests: Adapt tests according to latest in-memory storage changes
This fixes the ci's current broken build.
Related D897