Function createUnitTestEntityCompanionProvider

Entity companion provider for use in unit tests. All database and cache implementations are replaced with in-memory simulations.