add mem_instance_test.cc