TEST: add test_memory_layout