Use `lists:map/2` in the functional test