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