Removed usage of map function to fix this test for IE 8