ivfun: work with new map.c
add fremantle testprogs