Simplify map_id test