Added map functionality for list iteration. Changed output of tests to correct for ordering