[PATCH v2 3/4] Update unit test to support multiple memory backends