modified test_mapa.m