Refactor test not torely on map order