Fix testing edgecase where map was in wrong order