grim_map function

GRIM-test many cases at once