completed test when_reset_memory_from_set.c