DatabaseImagePersistenceStrategyTest: prefer interfaces.

No functional changes.