Add more tests to map and array functions