Test for passing index to map callback