Convert result of .map() into an array to test it