has map and each test cases